home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 8434 / 8434.xpi / chrome / content / edit.xul < prev    next >
Extensible Markup Language  |  2008-11-15  |  5KB  |  93 lines

  1. <?xml version="1.0"?>
  2. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  3. <?xml-stylesheet href="chrome://googleredesigned/skin/edit.css" type="text/css"?>
  4. <!DOCTYPE dialog [
  5. <!ENTITY % common SYSTEM "chrome://googleredesigned/locale/common.dtd">
  6. <!ENTITY % branding SYSTEM "chrome://googleredesigned/content/branding.dtd">
  7. <!ENTITY % edit SYSTEM "chrome://googleredesigned/locale/edit.dtd">
  8. %common;
  9. %branding;
  10. %edit;
  11. ]>
  12. <dialog
  13. id="googleredesigned"
  14. xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  15. xmlns:html="http://www.w3.org/1999/xhtml"
  16. buttons="accept,cancel,extra1"
  17. persist="screenX screenY width height sizemode"
  18. onload="init()"
  19. onunload="dialogClosing()"
  20. ondialogaccept="return ok()"
  21. ondialogcancel="return cancelDialog()"
  22. ondialogextra1="doPreview();"
  23. ondialogextra2="document.getElementById('deck').selectedIndex = 0"
  24. buttonlabelaccept="&save;"
  25. buttonaccesskeyaccept="&save.ak;"
  26. buttonlabelextra1="&preview;"
  27. buttonaccesskeyextra1="&preview.ak;">
  28. <script type="application/javascript" src="rdfds.js"/>
  29. <script type="application/javascript" src="GoogleRedesignedStyle.js"/>
  30. <script type="application/javascript" src="common.js"/>
  31. <script type="application/javascript" src="editor.js"/>
  32. <script type="application/javascript" src="edit.js"/>
  33. <!--    <script type="application/javascript" src="chrome://itsalltext/content/API.js"/>-->
  34. <stringbundle id="strings" src="chrome://googleredesigned/locale/googleredesigned.properties"/>
  35. <stringbundle id="urls" src="chrome://googleredesigned/content/urls.properties"/>
  36. <keyset>
  37.     <key id="save-key" modifiers="control" key="S" oncommand="apply()"/>
  38. </keyset>
  39. <deck id="deck" flex="1">
  40.     <vbox flex="1">
  41.         <hbox align="center">
  42.             <label control="description" accesskey="&description.ak;">&googleredesigned.description;</label>
  43.             <textbox id="description" flex="1"/>
  44.             <button onclick="refreshBasicDisplay();document.getElementById('deck').selectedIndex = 1; saveViewPreference();" id="basic-view" label="&basicview;" accesskey="&basicview.ak;"/>
  45.         </hbox>
  46.         <hbox>
  47.             <checkbox id="enabled" checked="true" label="&googleredesigned.enabled;" accesskey="&enabled.ak;"/>
  48.             <checkbox id="allow-updates" checked="true" label="&allowupdates;" accesskey="&allowupdates.ak;"/>
  49.             <spacer flex="1"/>
  50.             <label id="userstyles-link" class="text-link" href="http://userstyles.org">&addhint;</label>
  51.             <label id="style-url-link" class="text-link">&visitstyle;</label>
  52.             <label id="post-to-userstyles" onclick="return postStyle()" class="text-link">&poststyle;</label>
  53.         </hbox>
  54.         <hbox id="code-buttons">
  55.             <button label="&insert;" accesskey="&insert.ak;" type="menu">
  56.                 <menupopup>
  57.                     <menuitem label="&siterules;" accesskey="&siterules.ak;" tooltiptext="&siterules.tt;" oncommand="openSitesDialog()"/>
  58.                     <menuitem label="&xulnamespace;" accesskey="&xulnamespace.ak;" tooltiptext="&xulnamespace.tt;" oncommand="insertCodeAtStart(CSSXULNS);"/>
  59.                     <menuitem label="&htmlnamespace;" accesskey="&htmlnamespace.ak;" tooltiptext="&htmlnamespace.tt;" oncommand="insertCodeAtStart(CSSHTMLNS);"/>
  60.                     <menuitem label="&chromefolder;" accesskey="&chromefolder.ak;" tooltiptext="&chromefolder.tt;" oncommand="insertChromePath()"/>
  61.                     <menuitem label="&dataURI;" accesskey="&dataURI.ak;" tooltiptext="&dataURI.tt;" oncommand="insertDataURI()"/>
  62.                     <menu id="pick-color" label="&pickcolor;" accesskey="&pickcolor.ak;">
  63.                         <menupopup>
  64.                             <colorpicker id="normal-colorpicker" onclick="chooseColor(event)"/>
  65.                         </menupopup>
  66.                     </menu>
  67.                     <menuitem id="pick-color-rainbowpicker" label="&pickcolorrainbowpicker;" accesskey="&pickcolorrainbowpicker.ak;" oncommand="document.getElementById('rainbowpicker-detect').showPopup()"/>
  68.                 </menupopup>
  69.             </button>
  70.             <button label="&important;" accesskey="&important.ak;" tooltiptext="&important.tt;" oncommand="makeImportant()"/>
  71.             <button label="&itsalltext;" accesskey="&itsalltext.ak;" itsalltext-control="code" itsalltext-extension=".css" style="display: none;"/>
  72.             <checkbox id="wrap-lines" label="&wraplines;" accesskey="&wraplines.ak;" oncommand="changeWordWrap(this.checked)"/>
  73.             <colorpicker id="rainbowpicker-detect" type="button" onchange="insertRainbowPickerColor(event)"/>
  74.         </hbox>
  75.         <vbox flex="1">
  76.             <textbox id="code" multiline="true" flex="1" style="display: none"/>
  77.         </vbox>
  78.     </vbox>
  79.     <vbox flex="1">
  80.         <hbox>
  81.             <label id="simple-description" flex="1"/>
  82.             <button onclick="document.getElementById('deck').selectedIndex = 0; saveViewPreference()" id="advanced-view" label="&advancedview;" accesskey="&advancedview.ak;" flex="0"/>
  83.         </hbox>
  84.         <hbox style="overflow: auto;" flex="1">
  85.             <html:ul id="applies-to"/>
  86.         </hbox>
  87.         <description>
  88.             &basicoutro;
  89.         </description>
  90.     </vbox>
  91. </deck>
  92. </dialog>
  93.